
configuration AlohaC
{	
	provides interface AlohaSend;
	provides interface AlohaReceive;
	provides interface AlohaState;
}
implementation
{ 
	//Implenetation
	components AlohaP; 

	//Radio
	components RF230ActiveMessageC;
	components RF230DriverLayerP;
	
	
	//the timers
	components new TimerMilliC() as Timer0;
	
	//Other
	components LedsC;
 	
 	//Radio
 	AlohaSend = AlohaP.AlohaSend;
 	AlohaReceive = AlohaP.AlohaReceive;
	AlohaState = AlohaP.AlohaState;
	

	//Low Level Radio
	AlohaP.MulleSend -> RF230DriverLayerP.RadioSend;
	AlohaP.MulleReceive -> RF230DriverLayerP.RadioReceive;
  	AlohaP.MulleState -> RF230DriverLayerP.RadioState;
  	AlohaP.AMPacket -> RF230ActiveMessageC;
	AlohaP.Packet -> RF230ActiveMessageC;
  	
  	//Radio
	AlohaP.Timer0 -> Timer0;
	AlohaP.Leds -> LedsC;
}

